package org.automated.realestatemanager.db.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * UserStatus entity.
 * 
 * @author A.Pereverziev
 * 
 */
@Entity(name = "user_roles")
public class UserRole extends HasId {

	private static final long serialVersionUID = 7484193717523609781L;

	public UserRole() {
	}

	public UserRole(final String role) {
		this.role = role;
	}

	@Id
	@Column(name = "role_id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long id;
	private String role;

	@Override
	public String toString() {
		return role;
	}

	@Override
	public Long getId() {
		return id;
	}

	@Override
	public void setId(final Long id) {
		this.id = id;
	}

	public String getRole() {
		return role;
	}

	public void setRole(final String role) {
		this.role = role;
	}

}
